
const qs = require('qs')
import { getCookie, clearCookie } from "../utils/cookie";

const loginInterface = (req: any) => {
    let cookie = getCookie()
    console.log('退出 传递参数', req, cookie)
    let bool = clearCookie()
    let code: number = 401, msg: string = '退出失败',
        data: Object = {}
    if (bool) {
        code = 0, msg = '退出成功'
    }

    return {
        code,
        msg,
        data
    }
}

export default loginInterface 